import request from '../utils/request';

/**
 * 注册接口
 */
export const getRegister = (data) => {
  return request({ method: 'post', url: '/api/v1/user/register', data });
};

/**
 * 登录接口
 */
export const getLogin = (data) => {
  return request({ method: 'post', url: '/api/v1/user/login', data });
};

/**
 * 获取用户信息接口开发
 */
export const getUserInfo = () => {
  return request({ method: 'get', url: '/api/v1/user/userInfo' });
};

/**
 * 课程列表数据接口
 */
export const getCourse = (data) => {
  return request({ method: 'get', url: '/api/v1/course/find', data });
};
/**
 * 课程列表修改接口
 */
export const changeCourse = (data) => {
  return request({ method: 'get', url: '/api/v1/course/update', data });
};

/**
 * 课程列表删除接口
 */
export const deleteCourse = (data) => {
  return request({ method: 'get', url: '/api/v1/course/delete', data });
};